
#pragma once

#include <memory>
#include <QtQuick/QtQuick>
#include "ui_qtrial.h"

#include <QtWinExtras/QtWinExtras>
#pragma comment(lib,"qt5winExtrasd")



void InstallFocusHook();
//////////////////////////////////////////////////////////////////////////
//
class Qtrial_WidgetPrivate;
class Qtrial_Widget:public QWidget
{
	Q_OBJECT
public:
	Qtrial_Widget(QWidget* parent=0);

	~Qtrial_Widget();

	void setMainQmlFile(const QString &file);
	void addImportPath(const QString &path);

	virtual bool eventFilter( QObject * o, QEvent * e );

	virtual bool event(QEvent * e) override;


private:
	std::unique_ptr<Qtrial_WidgetPrivate>	_private;
	
};

